﻿
@{
    ViewBag.Title = Resources.WebStringsWeb.WebTitle;
    Layout = "~/Views/Shared/_LayoutMobile.cshtml";
}

@section css {
    <link href="~/Assets/css/previewImage.css" rel="stylesheet" />
    <link href="~/Assets/css/mui.picker.min.css" rel="stylesheet" />
    <script src="~/Assets/js/mui.picker.js"></script>
    <script src="~/Assets/js/mui.picker.min.js"></script>
    <script src="~/Assets/js/mui.dtpicker.js"></script>
    <style>
        .mui-bar ~ .mui-content .mui-scroll-wrapper {
            top: 44px;
            height: auto;
        }

        .btn_addPic {
            display: block;
            position: relative;
            width: 53px;
            height: 53px;
            overflow: hidden;
            cursor: pointer;
            text-align: center;
        }

        .filePrew {
            display: block;
            position: absolute;
            top: 0;
            left: 0;
            width: 53px;
            height: 53px;
            opacity: 0;
        }
    </style>
}
<header class="mui-bar mui-bar-nav">
    <button type="button" class="mui-left mui-action-back mui-btn mui-btn-link mui-btn-nav mui-pull-left" style="color:white;">
        <span class="mui-icon mui-icon-left-nav" style=""></span>
    </button>
    <h1 class="mui-title" style="color:white;">事件报告详细</h1>
</header>

<div class="mui-content">
    <div class="mui-content-padded" style="margin: 5px;" ng-cloak ng-controller="EventReportController" ng-init="
     Id='@(Request.QueryString["Id"].IsEmpty() ? "" : Request.QueryString["Id"])';
     ImageCount=[0,1,2,3,4];
     FileList=[];
     MGetEventReportDetail(Id);
     GetParkList();
     ">
        <form class="mui-input-group">
            <div class="mui-input-row">
                <label>园区</label>
                <input type="text" ng-model="EventReportDetail.ParkName" readonly>
            </div>
            <div class="mui-input-row">
                <label>场所</label>
                <input type="text" ng-model="EventReportDetail.PlaceName" readonly>
            </div>
            <div class="mui-input-row">
                <label>上报时间</label>
                <input type="text" ng-model="EventReportDetail.ReportTime" readonly>
            </div>
        </form>
        <h5 class="mui-content-padded">报告层级</h5>
        <form class="mui-input-group">
            <div class="mui-input-row mui-checkbox mui-left">
                <label>责任部门</label>
                <input name="checkbox" value="Item 1" type="checkbox" checked disabled>
            </div>
            <div class="mui-input-row mui-checkbox mui-left">
                <label>安委办</label>
                <input name="checkbox" value="Item 2" ng-checked="EventReportDetail.ReportLevel==2" type="checkbox" id="level2" disabled>
            </div>
        </form>

        <h5>&nbsp;&nbsp;&nbsp;&nbsp;事件描述：</h5>
        <div class="mui-input-row" style="margin: 10px 5px;">
            <textarea id="textarea" rows="5" placeholder="事件描述" ng-model="EventReportDetail.EventContent" readonly></textarea>
        </div>
        <h5 class="mui-content-padded">&nbsp;&nbsp;处理情况：</h5>
        <div class="mui-input-row" style="margin: 10px 5px;">
            <textarea id="textarea" rows="5" placeholder="处理情况" ng-model="EventReportDetail.DealContent" readonly></textarea>
        </div>
        <form class="mui-input-group">
            <div class="mui-input-row">
                <label>验证人</label>
                <input type="text" ng-model="EventReportDetail.CheckUser" placeholder="验证人" readonly>
            </div>
            <div class="mui-input-row">
                <label>验证时间</label>
                <input type="text" ng-model="EventReportDetail.CheckTime" id="datetime2" placeholder="选择验证时间" class="datetime" data-options='{}' readonly>
            </div>
        </form>
        <p ng-show="EventReportDetail.FileList.length>0">&nbsp;&nbsp;&nbsp;&nbsp;事件照片</p>
        <div class="row image-list" style="margin-top:20px;margin-bottom:50px;">
            <img class="image-item space" style="display:inline-block;margin-left:10px;" ng-src="{{x.FilePath}}" width="50" data-preview-src="" data-preview-group="1" ng-repeat="x in EventReportDetail.FileList" />
        </div>


    </div>
</div>
<div style="height:80px;">

</div>

@section js{

    <script src="~/Assets/js/libs/upload.js"></script>
    <script src="~/Assets/js/mui.zoom.js"></script>
    <script src="~/Assets/js/mui.previewimage.js"></script>
    <script src="~/Assets/js/pg/EventReport.js?v=@DateTime.Now.ToString("yyyyMMddHH")"></script>
    <script>

        mui.showLoading("正在加载..", "div");

        setTimeout(function () {
            mui.hideLoading();
            mui.previewImage();
        }, 2000);
    </script>
}
